FROM harbor.cricbigdata.com/cricin/openjdk:15.0.2-jdk
VOLUME /tmp
ADD /target/*.jar repeat-task.jar
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
ENV LANG C.UTF-8
ENTRYPOINT ["sh", "-c", "exec java $JAVA_OPTS -Dfile.encoding=utf-8 -jar -Duser.timezone=GMT+08 repeat-task.jar"]